const axios = require('axios');
const cookie = 'session=eyJqd3QiOiJleUpoYkdjaU9pSklVekkxTmlJc0luUjVjQ0k2SWtwWFZDSjkuZXlKcFpDSTZJalkxTm1WbFpHTmhNbVk1T0dFMk1HRmxNamhpTXpZM1pDSXNJbVZ0WVdsc0lqb2lkR1Z6ZEdGaFlVQnhjUzVqYjIwaUxDSnBZWFFpT2pFM01ERTNOamcyTlRCOS51VENScGViTlJaYW9hMkxQTWlyTG9fYWx3OFZwLXNzQzAzR3hzWEotSGxRIn0=; Path=/; Secure; HttpOnly;';
const doRequest = async () => {
    const {data} = await axios.post('https//ticketing.dev/api/tickets',{
        title: 'test',
        price: 10
    },{
        headers:{ cookie }
    });

    await axios.put(`https://ticketing.dev/api/tickets/${data.id}`,{
        title: 'testabc',
        price: 20
    },{
        headers: { cookie }
    });

    await axios.put(`https://ticketing.dev/api/tickets/${data.id}`,{
        title: 'testabc',
        price: 30
    },{
        headers: { cookie }
    });
}
(async () => {
    for (let i = 0; i < 400; i++){
        doRequest();
    }
})();